<h2><a href="<?php echo $kong_href ?>"><i class="icon-quote-left"></i> <?php echo $kong_name ?></a></h2>
 
<div class="pull-right gap">
	<div class="btn-group">
		<a class="btn btn-primary" href="<?php echo $href?>/<?php echo $kong_id ?>/new">New Posting</a>
	</div>
</div>

<table class="table table-striped table-condensed table-hover">
	<thead>
		<tr>
			<th class="width50">n</th>
			<th>Subject</th>
			<th class="width100">Category</th>
			<th class="width100">등록일</th>
			<th class="width100">수정일</th>
		</tr>
	</thead>
	<tbody>
<?php
for ($i = 0; $i < count($rows); $i++) {
?>
		<tr data-href="<?php echo $href?>/<?php echo $kong_id ?>/<?php echo urlencode($rows[$i]['idx'])?>">
			<td><?php echo $rows[$i]['n']?></td>
			<td class="align-left"><?php echo $rows[$i]['subject']?></td>
			<td><?php echo (isset($category[ $rows[$i]['category_idx'] ])) ? $category[ $rows[$i]['category_idx'] ] : "미지정" ?></td>
			<td><?php echo date("y.m.d", $rows[$i]['reg_date'])?></td>
			<td><?php echo date("y.m.d", $rows[$i]['mod_date'])?></td>
		</tr>
<?php
}
?>
	</tbody>
</table>

<div class="pagination pagination-centered"><?php echo $pagination ?></div>
